package com.aplink.generic.constant;

public enum TabhostDisplay {
    Title( "title" ),
    Icon( "icon" ),
    TitleAndIcon( "title|icon" );

    private String mValue;

    private TabhostDisplay( String value ) {
        setValue( value );
    }

    public String getValue() {
        return mValue;
    }

    public void setValue( String value ) {
        mValue = value;
    }

    public static TabhostDisplay get( String value ) {
        for ( TabhostDisplay tabhostDisplay : values() ) {
            if ( tabhostDisplay.mValue.equalsIgnoreCase( value ) ) {
                return tabhostDisplay;
            }
        }
        return null;
    }

}
